package com.xiaoming.backend.dao;

import com.xiaoming.backend.entity.db.po.CarTaskPO;
import com.xiaoming.backend.entity.orm.Task;

import java.util.Date;
import java.util.List;

public interface ICarTaskDao {
    int insertCarTask(CarTaskPO carTaskPO);

    List<Task> getTaskInfo(Long driverId, int flag, String status, Long facilityId);

    CarTaskPO startTask(Long taskId, String status, Long facilityId, Long userId);

    Integer finishTask(Long taskid, String status);

    String getTaskCount(Long userId);
    String getTaskCount(Long userId, Date date);

    Long getTaskAdminCount(Long facilityId);

    Long getTaskAdminCount(Long facilityId, Date date);
}
